package com.fzk.controller;

import com.fzk.core.FileStoreService;
import com.fzk.router.AutoRegister;
import com.fzk.router.MyAutowire;
import com.fzk.router.MyRequestMapping;
import com.fzk.router.SimpleApiHandler;
import com.fzk.vo.HttpResult;

@SuppressWarnings("unused")
@AutoRegister
public class HelloController {

    @MyAutowire(key = "fileService")
    private FileStoreService fileService;

    @MyRequestMapping(path = "/fs/hello", method = "get")
    private final SimpleApiHandler helloWorld = (ctx, request, params) -> HttpResult.success("hello world");
}